package com.example.springboot;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;
import java.util.Map;

@SpringBootTest
class SpringbootApplicationTests {
	@Autowired
	@Qualifier("primaryJdbcTemplate")
	JdbcTemplate jdbc;


	@Autowired
	@Qualifier("secondaryJdbcTemplate")
	JdbcTemplate jdbc2;

	@Autowired
	@Qualifier("JdbcTemplate3")
	JdbcTemplate jdbc3;


	@Test
	void contextLoads() {
		System.out.println(jdbc.queryForList("select * from sync_list order by 1,2 "));
		System.out.println(jdbc2.queryForList("select * from sync_list_cnt order by 1,2 "));
		System.out.println(jdbc3.queryForList("select * from sync_list_cnt order by 1,2 "));
	}


}
